<?php
session_start();
include_once("check_login.php");
include_once("class/common.fun.php");
include_once("class/MySqlConnect.class.php");

$auction_id = $_GET['auction_id'] ;
if (empty($auction_id)) {
	showMessage("Operation of an error");
}
if (!is_numeric($auction_id)) {
	showMessage("Operation of an error");
}

$_MySqlConnect = new MySqlConnect();
$sql = "SELECT * FROM auction where auction_id = ".$auction_id." LIMIT 0,1";
$arr_list = $_MySqlConnect->execute($sql);
if (empty($arr_list)) {
	showMessage("Operation of an error");
}


?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Show</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php include("menu.php"); ?>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="111" height="30"><SPAN id="result_box"><SPAN closure_hashCode_4om4wx="18">Item   Code</SPAN></SPAN>:</td>
    <td width="489"><?php echo $arr_list[0]['auction_code'];?></td>
  </tr>
  
  <tr>
    <td height="30">Lowest   price:</td>
    <td><?php echo $arr_list[0]['lowest_price'];?></td>
  </tr>
  <tr>
    <td height="30">Auction cut-off   time:</td>
    <td><?php echo $arr_list[0]['at_term'];?></td>
  </tr>
  <tr>
    <td height="30">Project   Description:</td>
    <td><?php echo $arr_list[0]['auction_content'];?></td>
  </tr>
  <tr>
    <td height="30" valign="top"><br>
    <SPAN id="result_box"><SPAN closure_hashCode_4om4wx="50">Bidding   Information</SPAN></SPAN>:</td>
    <td height="30" valign="top">
    <br>
    <?php
    $arr_price = $_MySqlConnect->execute("select * from bid_price,user where bid_price.user_id = user.user_id and bid_price.auction_id=$auction_id order by bid_price.price DESC");
    foreach ($arr_price as $value){
    	echo "Price:".$value['price']."</br>";
    }
    ?>    </td>
  </tr>
</table>
</body>
</html>
